package cn.lizemin.demo.integer;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Demo {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        //如果对象比较
        Integer i1 = 12;
        Integer i2 = 12;
        System.out.println(i1 == i2);//true

        Integer i3 = 160;
        Integer i4 = 160;
        System.out.println(i3 == i4);//false

        Integer i5 = 12;
        Integer i6 = 13;
        System.out.println(i5 == i6);//false

        System.out.println("string类。。。。。。");
        String s1 = "a";
        String s2 = "a";
        System.out.println(s1 == s2);





    }
}
